﻿using System.Text;
using System.Web.Mvc;
using Common.Objects.Enums;
using Common.Resources;

namespace Common.Objects.Column
{
    public class StringColumn : BaseColumn
    {
        public StringColumn(string value)
        {
            ColumnType = ColumnType.String;
            Value = value;
        }

        private string Value { get; set; }

        public override string Render()
        {
            if(ColumnType == ColumnType.String)
            {
                return string.Format(HtmlResources.SelectColumnTemplate, Value);
            }

            return base.Render();
        }
    }
}